export const get_token = () =>{
    let token = "";
    token = uni.getStorageSync('token')
    // uni.getStorage({
    //     key: 'token',
    //     success: function (res) {
    //         token = res.data;
    //     }
    // });
    // 测试
    // return 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2ODM4NzcyMTQsInVzZXJuYW1lIjoiYWRtaW4ifQ.g6sl2Gsqh1b5iazO3nyXL726RtkeeUaF5BsVpv6YXNo';
    return token;
}

export const set_token = (token) => {
    uni.setStorageSync('token', token);
}

export const reset_token = (token) => {
    uni.setStorageSync('token', null);
}
